// components/navigation-bar/index.js
Component({
  properties:{
    back:Boolean,
    delta:{
      type:Number,
      value:1
    }
  },
  options:{
    addGlobalClass:true,
    multipleSlots: true
  },
  externalClasses:['custom-class', 'title-class'],
  lifetimes: {
    created() {
      console.log('我不困')
    },
    async attached() {
      // code...
      const res = await wx.getSystemInfo()
      console.log('你的手机是'+ res.model)
    }
  },
  methods:{
    goBackFn(){
      wx.navigateBack({
        delta:this.data.delta
      })
    }
  }
})
